cmake_minimum_required(VERSION 3.16...3.27)

project(map2rerun LANGUAGES CXX)
set(CMAKE_WARN_DEVELOPER OFF)


set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
set(CMAKE_CXX_STANDARD 17)
add_compile_options(-Wall -Wextra -Wpedantic)


find_package(rerun_sdk REQUIRED)
find_package(PCL REQUIRED)


link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})


include_directories(
  ${PCL_INCLUDE_DIRS}
)

add_executable(map2rerun src/read_map.cpp)

target_link_libraries(map2rerun PRIVATE 
    ${PCL_LIBRARIES}    
    rerun_sdk
)
